package com.jic.product.mapper;

import com.jic.product.entity.ProductPrice;
import com.jic.product.manage.request.ProductBatchUpdateRequest;
import com.jic.product.manage.request.ProductPriceRequest;
import com.jic.product.manage.response.ProductPriceResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 价格表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-01-10 07:03:01
 */
@Mapper
public interface ProductPriceMapper {

    long insert(ProductPrice productPrice);

    long delete(Long id);

    long update(ProductPrice productPrice);

    ProductPrice queryByPrimaryKey(Long id);

    List<ProductPrice> query(ProductPrice productPrice);

    List<ProductPrice> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit,@Param("productPrice") ProductPrice productPrice);

    long queryPageCount(ProductPrice productPrice);

    ProductPrice getProductPrice(ProductPrice productPrice);

    long updateProductDistributeStore(ProductPrice productPrice);

    ProductPriceResponse queryProductPrice(ProductPriceRequest price);

    long batchUpdateProductPrice(@Param("productBatchUpdateRequest") ProductBatchUpdateRequest productBatchUpdateRequest);
}
